package baliOnWeb.jettyMgr;

import java.io.OutputStream;  
import java.net.InetAddress;  
import java.net.Socket;  
  
public class JettyStopper {  
  
    public static void main(String[] args) throws Exception {  
        Socket s = new Socket(InetAddress.getByName("127.0.0.1"), 8079);  
        OutputStream out = s.getOutputStream();  
        System.out.println("*** sending jetty stop request");  
        out.write(("stop").getBytes());  
        out.flush();  
        s.close(); 
    }   
}  